package tech.hypersense.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tech.hypersense.common.core.annotation.DataPermission;
import tech.hypersense.system.model.entity.Dept;

import java.util.List;

/**
*@Author: HyperSense
*@CreateTime: 2025-03-25
*@Description: 
*@Version: 1.0
*/
@Mapper
public interface DeptMapper extends BaseMapper<Dept> {

    @DataPermission(deptIdColumnName = "id")
    @Override
    List<Dept> selectList(@Param(Constants.WRAPPER) Wrapper<Dept> queryWrapper);
}